home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / samdu220.zip / HANDLEST.H < prev    next >
Text File  |  1993-04-01  |  3KB  |  68 lines

  1. /*********************************************************************/
  2. /*                                                                   */
  3. /*    Name:    HANDLEST.H                                            */
  4. /*                                                                   */
  5. /*    Copyright (c) Stewart A. Berman 1992, All rights reserved      */
  6. /*                                                                   */
  7. /*********************************************************************/
  8. #ifndef __HANDLEST_H__
  9. #define __HANDLEST_H__
  10.  
  11. #ifdef _cplusplus
  12. extern "C" {
  13. #endif /* _cplusplus */
  14.  
  15. typedef int (FAR PASCAL * lpfnHANDLESTATUS)( UINT nStatus1, UINT nStatus2, UINT nParam1, UINT nParam2, LONG lParam1, LONG lParam2 ) ;
  16.  
  17. int  FAR PASCAL HandleStatus ( UINT nStatus1, UINT nStatus2, UINT nParam1, UINT nParam2, LONG lParam1, LONG lParam2 ) ;
  18.  
  19. int  FAR PASCAL SABDUTimerFunc ( HWND hWnd, UINT nMsg, UINT nIDEvent, DWORD dwTime ) ;
  20.  
  21. /********************************************************************/
  22. /*                                                                  */
  23. /* The following structure is used to transfer information between  */
  24. /* this routine and one that can access areas used by the WM_PAINT  */
  25. /* routine.  A pointer to the structure is passed via a SendMessage */
  26. /* call.  The first LPSTR points to the message to be used when     */
  27. /* the application is running in Iconic state.  The second LPSTR    */
  28. /* points to the message to be used when the application is not     */
  29. /* running in Iconic state.  The UINT field contains the percent    */
  30. /* complete for long running tasks such as formatting a diskette.   */
  31. /*                                                                  */
  32. /********************************************************************/
  33.  
  34. typedef struct tagSTMESSAGE
  35.     {
  36.     LPSTR pIconMessage ;
  37.     LPSTR pNormalMessage ;
  38.     UINT  nPercentageToColor ;
  39.     } STMESSAGE ;
  40.  
  41. /********************************************************************/
  42. /*                                                                  */
  43. /* The following defines should be set to avoid conflicts with      */
  44. /* existing message IDs in your applicateion                        */
  45. /*                                                                  */
  46. /********************************************************************/
  47.  
  48. #define USR_ACTIVE      WM_USER+555
  49.                         /* lParam = &stMessage */
  50. #define USR_UPDATE      WM_USER+556
  51.                         /* lParam = &stMessage */
  52. #define USR_INACTIVE    WM_USER+557
  53.  
  54. /********************************************************************/
  55. /*                                                                  */
  56. /* The following define should be set to avoid conflicts with       */
  57. /* existing timer IDs in your application.                          */
  58. /*                                                                  */
  59. /********************************************************************/
  60.  
  61. #define TIMER_INTERVAL  3
  62.  
  63. #ifdef _cplusplus
  64.            }
  65. #endif /* _cplusplus */
  66.  
  67. #endif /* __HANDLEST_H__ */
  68.